<div class="Line"><b>Envios</b> | <a href="">Remessa</a> | <a href="">Data</a></div>
<div id="SndOrdersList" style="overflow:auto;width:176px;margin:1px;">
<table width="160"  border="0" cellspacing="1" cellpadding="1">
	<?php
	$s_a = array(1,9,10);
	$s_b = array(2,7);
	$prtlist = '';
	$GET = $GLOBALS['MYT']->db_array("SELECT DATE_FORMAT(FraFechaIngreso, '%d/%m/%y') AS Time, CorrAgente, FraID, FraStatus, FraEnviado
		FROM officeschema_stored.facturas
		INNER JOIN corresponsales ON FraCorresponsal = CorrNumero
		WHERE FraCliNumero = {$_GET['ClientID']} ORDER BY FraID DESC");
	for ($u = 1; $u<=$GET[0]; $u++) {
	if (in_array($GET[$u]['FraStatus'],$s_a)) {
	$stimg = 'gfx0094.png';
	} elseif (in_array($GET[$u]['FraStatus'],$s_b)) {
	$stimg = 'true.png';
	} else {
	$stimg = 'alert.png';
	}
    $prtlist .= '<tr bgcolor="';
	if ($GET[$u]['FraStatus'] == 10) { $prtlist .=  '#FFCC99'; } else {
	$prtlist .= gridlines($u);
	} $prtlist .= '">
      <td>';
	    if ($GET[$u]['FraStatus'] != 10) {
		$prtlist .= '<a href="javascript:modalwindow(\'Detalhes\',\'_response/call.php?get=Operative/frm_transferdetails&RSID='.$GET[$u]['FraID'].'\',680,500);">'.$GET[$u]['Time'].'</a> '.$GET[$u]['CorrAgente'];
		} else {
		$prtlist .= $GET[$u]['Time'];
		}
		$prtlist .= '</td>
      <td align="right">'.number_format($GET[$u]['FraEnviado'],2,',','').'</td>
	  <td>';
	  if ($GET[$u]['FraStatus'] != 10) {
	  $prtlist .= '<img height="15" src="_response/bin.php?get=default/'.$stimg.'" />';
	  } $prtlist .= '</td>
    </tr>';
	}
	echo $prtlist; ?>
  </table>